package com.anjubao.parking.municipal.parkinglot.mapper;

import com.anjubao.parking.municipal.parkinglot.dto.*;
import com.anjubao.parking.municipal.parkinglot.model.ParkingStatSlot;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author anjubao
 */
@Mapper
@Repository
public interface ParkingStatSlotMapper extends BaseMapper<ParkingStatSlot> {

    /**
     * 获得重点停车场车位空位列表
     * @param cityId
     * @param tab
     * @return
     */
    List<ParkingStatSlotsFocusResDto> findSlotsFocus(Integer cityId, Integer tab);


    /**
     * 根据城市id和市区Id统计分时停车场车位已用趋势
     * @param cityId
     * @param type
     * @return
     */
    List<ParkingTrentSlotsUsedResDto> getParkingTrendSlotsUsed(Integer cityId, Integer type, Integer limit);


    /**
     * 根据停车场编号parkingLotCode统计分时停车场车位未用趋势
     * @param parkingLotCode
     * @param limit
     * @return
     */
    List<ParkingTrentSlotsFreeResDto> getParkingTrendSlotsfree(String parkingLotCode, Integer limit);
}
